package com.fyx.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fyx.annotation.Query;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
@Document(collection = "channel_data")
public class ChannelDataEntity {
    @Transient
    private List<Timestamp> qTime;

    @Transient
    private Timestamp beginTime;

    @Transient
    private Timestamp endTime;

    private String id;

    private int act_num;

    private String channel;

    private int charge_amount;

    private int charge_pnum;

    private int day;

    private int first_charge_pnum;

    private Map game_charge;

    private int h5_total_charge;

    private int new_charge_amount;

    private int new_charge_pnum;

    private int played_user_count;

    private int played_new_user_count;

    private int reg_num;

    @Transient
    private int reg_num1;

    @Transient
    private int reg_num2;

    @Transient
    private int reg_num3;

    @Transient
    private int reg_num4;

    private int[] retention;


    private int total_charge;

    private int total_charge_pnum;

    @Transient
    private Boolean hasChildren = true;

    @Transient
    private Long deptId;

    @Transient
    private String flag;

    @Query(propName = "id", type = Query.Type.IN, joinName = "dept")
    @javax.persistence.Transient
    private Set<Long> deptIds = new HashSet<>();

    private int ltv[];

    private long total;
}
